﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            time.Text = System.DateTime.Now.ToShortDateString();
        }

        protected void commit_Click(object sender, EventArgs e)
        {
            if (text.Text.Equals(""))
            {
                lips.Text = "内容为空，无法提交";
            }
            else
            {
                lips.Text = $"感谢来自{source.SelectedValue}的新闻";
            }
        }

        protected void reset_Click(object sender, EventArgs e)
        {
            text.Text = "";
        }
    }
}